package com.tensquare.openfeign.controller;

import cn.hutool.core.util.IdUtil;
import com.ruoyi.common.core.utils.poi.ExcelUtil;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.PreAuthorize;

import com.tensquare.openfeign.client.GatheringClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 标签Controller
 * 
 * @author hbxfwf
 * @date 2021-08-24
 */
@RestController
@RequestMapping("/label")
public class LabelController extends BaseController
{

    @Autowired
    private GatheringClient gatheringClient;

    //在base模块调用远程的gathering模块
    @GetMapping("/gathering/findId/{id}")
    public  AjaxResult findById(@PathVariable("id") String id){
        return gatheringClient.findById2(id);
    }

}
